package com.company.bookstore.controller.user_admin_module;

import com.company.bookstore.aspect.CIAM;
import com.company.bookstore.common.result.MvcResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/public")
public class TestController {
//    @Resource
//    CustomProducer customProducer;
//    @Resource
//    CustomConsumer customConsumer;
//    @PostMapping("/send")
//    public void send(){
//        List<String> contents  = new ArrayList<>();
//        contents.add("hello");
//        customProducer.syncSend("test",contents);
//    }
//    @GetMapping("/receive")
//    public void receive(){
//        customConsumer.receive("test");
//    }
    @CIAM(methodName = "testaop")
    @GetMapping("testaop")
    public MvcResult<Object> test(){
        return MvcResult.LOGING_SUCCESS;
    }


}
